//
//  function_call.cpp
//  learnC++
//
//  Created by apple on 2018/5/30.
//  Copyright © 2018年 yunfan.com. All rights reserved.
//

#include "function_call.hpp"

using namespace std;

xiaoMing::xiaoMing(int a){
    
}


void foo(int &value)
{
    value = 6;
}

void test_function(){
    
    
    int value = 5;
    
    cout << "value = " << value << '\n';
    //reference
    foo(value);
    cout << "value = " << value << '\n';
    
    
}
